#include <cstdio>
#include <cstring>
#include <iostream>
#include <errno.h>

using namespace std;

int main()
{
    char str[] = "linux so easy!";
    FILE *file = fopen("bite", "wb");
    if (file == NULL)
    {
        printf("%s\n", strerror(errno));
    }
    fprintf(file, "%s", str);
    fclose(file);
    return 0;
}